Skip to content

Conversation

@maleadt
Copy link
Member

@maleadt maleadt commented Feb 8, 2026

Fixes #77 (comment)

The deferred emission was probably too fancy for what it was worth (both the Julia optimizer and back-end compiler are expected to do DCE), and didn't fix all of the issues involving constants.

Replace deferred constant emission (constant_value + maybe_materialize!)
with eager ConstantOp emission directly in emit_value!(ctx, ::GlobalRef).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@maleadt maleadt merged commit 48de434 into main Feb 8, 2026
8 checks passed
@maleadt maleadt deleted the tb/constants_bis branch February 8, 2026 20:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Using constants generates compilation error

1 participant